<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String p=request.getParameter("phone");
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>修改密码</title>
<meta name="viewport" id="view" name="view" content="width=device-width,height=device-height, initial-scale=1.0, user-scalable=no,minimum-scale = 1.0,maximum-scale = 5.0," />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="登录,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<link rel="stylesheet" href="<%=basePath%>css/wx.css" />
<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/example.js"></script>
<script type="text/javascript" src="<%=basePath%>js/alterPsw.js"></script>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
// 屏蔽屏幕自身手势
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
var dianhua="<%=p%>";
 </script>

<body ontouchstart>
	<div class="container js_container"></div>
	<div class="page">
		<div class="bd">
			<div class="weui_grids">
				<div style="text-align: center;margin-top: 50px;">
					<img alt="" src="./images/logo2.png" width="55%" height="100px;"><br>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 6em">手机号码：</label>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="number" name="phone" id="phone" placeholder="请输入手机号码">
				</div>
			</div>
			
			<div class="weui_cell">
		<div class="weui_cell_hd">
			<label class="weui_label" style="width: 100%;">验&nbsp;&nbsp;证&nbsp;&nbsp;码：</label>
		</div>
		<div class="weui_cell_bd weui_cell_primary">
			<input class="weui_input" type="text" style="width: 45%;margin-left: 12px;"  name="passNum" id="passNum" placeholder="请输入验证码">
		<a class="weui_btn weui_btn_mini weui_btn_primary" style="vertical-align:middle;float: right;" onclick="sendPassNum();" id="send" >发送验证码</a>
		</div>
		
	</div>
		<div class="weui_cell" id="mima" style="display: none"> 
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 6em; " >密   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="password" name="psw" id="psw" placeholder="请输入密码" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">
				</div>
			</div>
			<div class="weui_cell" id="again"  style="display: none">
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 6em">确 认密码：</label>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="password" name="pswAgain" id="pswAgain" placeholder="请再次输入密码" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">
				</div>
			</div>

		</div>
		<div class="weui_btn_area">
			<a class="weui_btn weui_btn_primary login" href="javascript:" id="showTooltips" onclick="toAlter();">提交</a>
		</div>
		<div class="weui_extra_area" style="position: static;">
			<span style="color: #969696;">已有账号，请</span>
            <a onclick="toLogin();" style="color: #1c90f6;">前往登录</a>
        </div>
	</div>
	<div id="loadingToast" class="weui_loading_toast" style="display: none;">
				<div class="weui_mask_transparent"></div>
				<div class="weui_toast">
					<div class="weui_loading">
						<div class="weui_loading_leaf weui_loading_leaf_0"></div>
						<div class="weui_loading_leaf weui_loading_leaf_1"></div>
						<div class="weui_loading_leaf weui_loading_leaf_2"></div>
						<div class="weui_loading_leaf weui_loading_leaf_3"></div>
						<div class="weui_loading_leaf weui_loading_leaf_4"></div>
						<div class="weui_loading_leaf weui_loading_leaf_5"></div>
						<div class="weui_loading_leaf weui_loading_leaf_6"></div>
						<div class="weui_loading_leaf weui_loading_leaf_7"></div>
						<div class="weui_loading_leaf weui_loading_leaf_8"></div>
						<div class="weui_loading_leaf weui_loading_leaf_9"></div>
						<div class="weui_loading_leaf weui_loading_leaf_10"></div>
						<div class="weui_loading_leaf weui_loading_leaf_11"></div>
					</div>
					<p class="weui_toast_content">正在修改...</p>
				</div>
			</div>
			
	<div id="toast" style="display: none;">
        <div class="weui_mask_transparent"></div>
        <div class="weui_toast">
            <i class="weui_icon_toast"></i>
            <p class="weui_toast_content">修改成功</p>
        </div>
    </div>
<!--     <input type="hidden" id="smsNum" name="smsNum" value="" style="display: none;"/> -->
</body>
</html>
